/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package aviso.entity;

import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToOne;

/**
 *
 * @author avgusti
 */
@Entity
public class Building extends GeoTag implements Serializable {
    private static final long serialVersionUID = 1L;
  
    @OneToOne
    private Area area;

    public Area getArea() {
        return area;
    }

    public void setArea(Area area) {
        this.area = area;
    }

    public int getFlors() {
        return flors;
    }

    public void setFlors(int flors) {
        this.flors = flors;
    }

    
    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }
    
    private int flors;
    private String number;
    
   

    @Override
    public String toString() {
        return getName();
    }
    
}
